package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
     new MyThread().start();
     new MyThread2().start();
    }
}
class MyThread2 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("你是谁");
        }
    }
}
class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("查水表");
        }
    }
}
